'''
Created on Mar 17, 2016

@author: JimmyMo
'''
import redis
import pika

class Dao(object):
    pass 
    
class RedisDao(Dao):
    def __init__(self):
        pass
    pass

def get_redis_connection(host, port, db):
    r_conn = redis.Redis(host, port, db)
    return r_conn

def get_rabbitmq_connection(host):
    rb_conn = pika.BlockingConnection(pika.ConnectionParameters(host))
    return rb_conn
